package widefinder

import groovy.util.concurrent.AtomicMap
import groovy.util.concurrent.AtomicMapEntry
import java.util.concurrent.atomic.AtomicLong

@Typed class StringCounterMap extends AtomicMap<String,StringCounterMap.Entry> {

    static class Entry extends AtomicLong implements AtomicMapEntry<String,AtomicLong> {}

    Entry createEntry(String key, int hash) {
        [key:key, hash:hash]
    }
}
